import request from "@/utils/request";

export function getCommodity(params) {
  return request({
    url: "/admin/api/rest/commodities",
    params
  });
}
export function addCommodities(data) {
    return request({
      url: "/admin/api/rest/commodities",
      method: "POST",
      data
    });
  }
  export function editCommodities(data) {
    return request({
      url: "/admin/api/rest/commodities",
      method: "PATCH",
      data
    });
  }
  export function deleteCommodities(data) {
    return request({
      url: "/admin/api/rest/commodities",
      method: "DELETE",
      data
    });
  }
  